import http from './http'

const $httpRequest = window.$httpRequest || http

const request = (config) => {
    if (!config.baseURL) config.baseURL = import.meta.env.VITE_APP_BASE_API
    return $httpRequest(config)
}

export default request